package com.zjhome.cloudnote.param;

import java.io.Serializable;

import com.zjhome.cloudnote.constant.ErrorCode;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 操作返回值
 * 
 * @author zjhome
 *
 */
@Data
@AllArgsConstructor
public class AckResult implements Serializable {
	/**
	 * 操作码
	 */
	private int status;
	/**
	 * 信息
	 */
	private String error;
	
	
	public AckResult(ErrorCode	errorCode) {
		this.status = errorCode.getCode();
		this.error = errorCode.getRemark();
	}
}
